<script setup>

const player = ref();


const props = defineProps({
  url: String
})

onMounted(() => {
  player.value = new Player({
    id: 'mse',
    url: props.url,
    width: null,
    height: 450,
    playsinline: true
  });
})


onBeforeUnmount(() => player.value.destroy())

</script>

<template>
  <div id="mse"></div>
</template>

<style scoped>

</style>
